|
SAP CC 3.0 BART API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectOperationFailureException
com.highdeal.bart.hci.InvalidCDRException
public class InvalidCDRException
This class implements the methods for the description of an invalid CDR exception.
| XML Schema Fragment |
<xs:element name="invalidCDRFault">
<xs:complexType>
<xs:sequence>
<xs:element ref="cdr" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
<xs:attribute name="reason" type="InvalidCDRReasonType"/>
<xs:attribute name="message" type="xs:string"/>
</xs:complexType>
</xs:element> |
<xs:simpleType name="InvalidCDRReasonType">
<xs:restriction base="xs:string">
<xs:enumeration value="internalError"/>
<xs:enumeration value="invalidCDR"/>
<xs:enumeration value="cdrDoesNotExist"/>
<xs:enumeration value="duplicateCDR"/>
<xs:enumeration value="cdrIsNull"/>
<xs:enumeration value="chargeableItemIsNull"/>
<xs:enumeration value="consumptionDateIsNull"/>
<xs:enumeration value="userIDIsNull"/>
<xs:enumeration value="serviceIDIsNull"/>
<xs:enumeration value="subscriptionIDisNull"/>
<xs:enumeration value="invalidMagicNumber"/>
<xs:enumeration value="alreadyRated"/>
<xs:enumeration value="ignoredCDR"/>
<xs:enumeration value="invalidCreationMode"/>
<xs:enumeration value="invalidModficationMode"/>
<xs:enumeration value="invalidDeletionMode"/>
<xs:enumeration value="invalidRatingMode"/>
<xs:enumeration value="cannotRateInvalidItem"/>
<xs:enumeration value="beingRated"/>
<xs:enumeration value="malformedProperty"/>
</xs:restriction>
</xs:simpleType> |
| Field Summary | |
|---|---|
static int |
CANNOT_RATE_INVALID_ITEM
The CDR cannot be rated because of the invalid item. |
static int |
CDR_ALREADY_RATED
The CDR is already rated. |
static int |
CDR_BEING_RATED
The CDR cannot be modified because it is being rated. |
static int |
CDR_DOES_NOT_EXIST
The given CDR Id doesn't refer to an existing CDR. |
static int |
CDR_IGNORED
The CDR is ignored. |
static int |
DUPLICATE_CDR
The CDR is a duplicate one. |
static int |
INTERNAL_ERROR
Reserved for internal use. |
static int |
INVALID_CDR
The CDR is not valid. |
static int |
INVALID_CREATION_MODE
The creation mode is invalid. |
static int |
INVALID_DELETION_MODE
The deletion mode is invalid. |
static int |
INVALID_MAGIC_NUMBER
The magic number is invalid. |
static int |
INVALID_MODIFICATION_MODE
The modification mode is invalid. |
static int |
INVALID_RATING_MODE
The rating mode is invalid. |
static int |
MALFORMED_PROPERTY
One or more Properties of the CDR are invalid. |
static int |
NULL_CDR
The given CDR is null. |
static int |
NULL_CHARGEABLE_ITEM
The given chargeable item is null. |
static int |
NULL_CONSUMPTION_DATE
The consumption date of this CDR is null. |
static int |
NULL_SERVICE_ID
The service id of this CDR is null. |
static int |
NULL_SUBSCRIPTION_ID
The subscription id of this CDR is null. |
static int |
NULL_USER_ID
The user id of this CDR is null. |
| Constructor Summary | |
|---|---|
InvalidCDRException()
Builds an empty InvalidCDRException. |
|
InvalidCDRException(int reason)
Builds an InvalidCDRException. |
|
InvalidCDRException(int reason,
CDRModel cdr)
Builds an InvalidCDRException. |
|
InvalidCDRException(int reason,
java.lang.String operandReference)
Builds an InvalidCDRException. |
|
InvalidCDRException(int reason,
java.lang.String operandReference,
CDRModel cdr)
Builds an InvalidCDRException. |
|
| Method Summary | |
|---|---|
void |
addCharacterData(java.lang.String cData)
|
void |
addChild(java.lang.String tagName,
XMLMarshallable child)
|
CDRModel |
getCdr()
Gets the cdr. |
java.lang.String |
getMessage()
Gets the message. |
java.lang.String |
getOperandReference()
|
int |
getReason()
Returns the reason of the exception. |
void |
marshal(XMLOutputter output)
|
void |
setAttributes(XMLAttributes atts)
|
java.lang.String |
toString()
Returns the reason of the exception in readable format. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int INTERNAL_ERROR
public static final int INVALID_CDR
public static final int CDR_DOES_NOT_EXIST
public static final int DUPLICATE_CDR
public static final int NULL_CDR
public static final int NULL_CHARGEABLE_ITEM
public static final int NULL_CONSUMPTION_DATE
public static final int NULL_USER_ID
public static final int NULL_SERVICE_ID
public static final int NULL_SUBSCRIPTION_ID
public static final int INVALID_MAGIC_NUMBER
public static final int CDR_ALREADY_RATED
public static final int CDR_IGNORED
public static final int INVALID_MODIFICATION_MODE
public static final int INVALID_DELETION_MODE
public static final int INVALID_RATING_MODE
public static final int CANNOT_RATE_INVALID_ITEM
public static final int CDR_BEING_RATED
public static final int INVALID_CREATION_MODE
public static final int MALFORMED_PROPERTY
| Constructor Detail |
|---|
public InvalidCDRException()
public InvalidCDRException(int reason)
reason - the reason of the exception.
public InvalidCDRException(int reason,
CDRModel cdr)
reason - the reason of the exception.cdr - the cdr leading to the exception.
public InvalidCDRException(int reason,
java.lang.String operandReference)
reason - the reason of the exception.operandReference - an operand reference such as faultly CDR OID.
public InvalidCDRException(int reason,
java.lang.String operandReference,
CDRModel cdr)
reason - the reason of the exception.operandReference - an operand reference such as faultly CDR OID.cdr - the cdr leading to the exception.| Method Detail |
|---|
public int getReason()
public java.lang.String getOperandReference()
public CDRModel getCdr()
CDRModel.public java.lang.String toString()
public java.lang.String getMessage()
public void setAttributes(XMLAttributes atts)
public void addChild(java.lang.String tagName,
XMLMarshallable child)
public void addCharacterData(java.lang.String cData)
public void marshal(XMLOutputter output)
|
SAP CC 3.0 BART API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||